<template>
    <div>
        
    </div>
</template>
<script>
export default {
    mounted(){
         var $this = this;
         $this.axios({
           method:'get',
           url: "http://localhost:9999/oauth/admin/token/logout",
           params: { access_token: localStorage.getItem("access_token") }
         }).then(function(res){
            $this.$message(res.data.msg);
            if(res.data.code==200){
              $this.$router.replace({path:"/"});
            }
         })
    }
}
</script>
<style scoped>

</style>